#!/usr/bin/env zsh
# Description:
#   Self management of zplug

if ! __zplug::base::base::zpluged "zplug/zplug"; then
    __zplug::io::print::f \
        --die \
        --zplug \
        "zplug/zplug: not managed yet\n"
    return 1
fi

ln -snf \
    "$ZPLUG_REPOS/zplug/zplug/init.zsh" \
    "$ZPLUG_HOME/init.zsh"
